<!DOCTYPE HTML>
<HTML>
	
<HEAD>
	<style>
		#tb1 {
			position:absolute;
			text-align:left;
			border:1px solid black;
			width:700px;
			left:10px;
		}
		
	</style>
	<script>
/**
	//添加物件屬性
	function Object(){ this.aaa = "aaaaaaaa"};
	
	//添加物件方法
	Object.prototype.sum= function(x){
		sum = 0;
		for (var i= 0;i<=x;i++){
			sum += i
		}
		return sum;
		};
		
	var a = new Object();
	var b = new Object();
	
	var c = new Object();
	
	alert(b.aaa);   //aaaaaaaa 
	a.sum(100);    // 5050
	alert(a.sum == b.sum && a.aaa == b.aaa);   //True 
	
 **/
 /** //引用 & 斷開引用
	 var arr1 = Array(1,2,3);
	 
	 alert(arr1);
	 var arr2 = arr1;
	 alert(arr2 == arr1);
	 alert(arr2)
	 arr2 = Array(arr2);
	 arr2.push(4);
	 alert(arr1);
	 alert(arr2 == arr1);
	 **/
	
	//構造一個類別的方法：函數+this添加屬性；prototype添加方法！
	/**function SS_Class(){this.abc =　"123";};
	
	SS_Class.prototype.show = function(){alert("show!");};
	
	var a = new SS_Class();
	alert(a.abc); //"123"
	a.show();   //"show!"
	**/
	Array.prototype.fn = function (){alert("Array's new fn through .prototype");};
	var a = Array();
	a.fn();   //"Array's new fn through .prototype"
	
	
	
	 </script>
</HEAD>
<BODY>

	<table id="tb1" >
		<td><center>会员注册信息</td>
		<tr>
			<td>帳號 <input type="text" size="20" maxlength=25 ></td>
		</tr>
		<tr>
			<td>密碼(8位數) <input type="password" size="10" maxlength=8 ></td>
		</tr>
		<tr>
			<td>重複密碼 <input type="password" size="10" maxlength=8 ></td>
		</tr>
		<tr>
			<td>真實姓名 <input type="text" size="10" maxlength=8 ></td>
		</tr>
		<tr>
			<td>性別 男<input type="radio" name="sex" value="Male">  女<input type="radio" name="sex" value="Female" ></td>
		</tr>
		<tr>
			<td>學歷 <input type="text" size="10" maxlength=8 ></td>
		</tr>
		<tr>
			<td>電話 <input type="text" size="10" maxlength=8 ></td> 
		</tr>
		<tr>
			<td>生日 <input type="text" size="10" maxlength=8 ></td> 
		</tr>
		<tr>
			<td>個人簡介 <textarea rows=10 cols=100> </textarea></td>
		</tr>
		<tr>
			<td><center><input type="submit" value="提交"></td>
		</tr>
	</table>
	
	
</BODY>
</HTML>
